import axios from '../../axios.js';
const LESSORS = '/lessors';
const lessors = {
    getLessors(params) {
        return axios({
            url: LESSORS + "/getLessors",
            method: "get",
            params
        });
    },
    modifyLessors(data) {
        return axios({
            url: LESSORS + "/modifyLessors",
            method: "post",
            data
        });
    },
    deleteLessors(data) {
        return axios({
            url: LESSORS + "/deleteLessors",
            method: "post",
            data
        });
    },

    //出租方注册，练超
    lessorsRegister(data){
        return axios({
            url: LESSORS + "/registers",
            method: "post",
            data
        });
    },

    //出租方注册，验证账号是否存在，练超
    isRegister(data){
        return axios({
            url: LESSORS + "/isRegisters",
            method: "post",
            data
        });
    },
}
export default lessors;